package string_test;

/**
 * @author yuisama
 * @date 2022/05/07 20:11
 **/
public class StringSub {
    public static void main(String[] args) {
        String str = "helloworld";
        // world
        System.out.println(str.substring(5));
        // [0...5)
        // hello
        System.out.println(str.substring(0,5));
        System.out.println(str);
    }
}